from django.urls import path
from . import views

# Django 2.0 新增的,方便写 url route
# https://docs.djangoproject.com/en/2.0/ref/urls/#django.urls.path

urlpatterns = [
    path('test/',
         views.Test.as_view(),
         name='test'
         ),

    path('on_login/',
         views.OnLogin.as_view(),
         name='on_login'
         ),
    
    path('my_books/',
         views.MyBooksView.as_view(),
         name = 'my_books'),

    path('change_my_book/',
         views.ChangeMyBook.as_view(),
         name = 'change_my_book'),

    path('advice/',
         views.GiveAdvice.as_view(),
         name='advice'),
    path('',
         views.Account.as_view(),
         name='account'),
]